package com.tianqi.paypal;

import java.util.Properties;

import com.tianqi.util.ThreadPoolCounter;

public class UISinglePaymentInfoGetAndPutToPaymentHashMap extends Thread
{
	public String transaction_id;
	
	public UISinglePaymentInfoGetAndPutToPaymentHashMap (String transactionId)
	{
		this.transaction_id = transactionId;
	}
	
	public void run ()
	{
		try
		{
			// ---- System.out.println(this.transaction_id);
			Properties single_properties = UIPaymentInfoGetter.getPaymentDetailsProperties(this.transaction_id);
			UIPaymentHashMap.payment_hash_map.put(transaction_id, single_properties);
			ThreadPoolCounter.cur_value++;
		} catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
